﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Net.Model.Entities.Enterprises
{
    [SugarTable("AppEnterprises", TableDescription = "企业表")]
    public partial class AppEnterprises: BasicModel
    {
        public AppEnterprises() { }

        [Display(Name = "企业Id")]
        [SugarColumn(ColumnDescription = "企业Id", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        [Display(Name = "企业名称")]
        [SugarColumn(ColumnDescription = "企业名称", IsNullable =false)]
        [Required(ErrorMessage = "请输入{0}")]
        public String? EnterpriseName { get; set; }

        [Display(Name = "省份Id")]
        [SugarColumn(ColumnDescription = "省份Id", IsNullable =true)]
        public long? ProvinceId { get; set; }

        [Display(Name = "城市Id")]
        [SugarColumn(ColumnDescription = "城市Id", IsNullable = true)]
        public long? CityId { get; set; }

        [Display(Name = "区域Id")]
        [SugarColumn(ColumnDescription = "区域Id", IsNullable = true)]
        public long? DistrictId { get; set; }

        [Display(Name = "详细地址")]
        [SugarColumn(ColumnDescription = "详细地址")]
        public String? DetailAddress { get; set; }

        [Display(Name = "联系人")]
        [SugarColumn(ColumnDescription = "联系人")]
        public String? Contact { get; set; }

        [Display(Name = "手机号")]
        [SugarColumn(ColumnDescription = "手机号")]
        [StringLength(20, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public String? MobilePhone { get; set; }

        [Display(Name = "职务")]
        [SugarColumn(ColumnDescription = "职务")]
        public String? Position { get; set; }

        [Display(Name = "邮箱地址")]
        [SugarColumn(ColumnDescription = "邮箱地址")]
        public String? EmailAddress { get; set; }

        [Display(Name = "传真号")]
        [SugarColumn(ColumnDescription = "传真号")]
        public String? FaxNumber { get; set; }

        [Display(Name = "座机号")]
        [SugarColumn(ColumnDescription = "座机号")]
        public String? Landline { get; set; }

        [Display(Name = "租户Id")]
        [SugarColumn(ColumnDescription = "租户Id", IsNullable = true)]
        public long? TenantId { get; set; }

        [Display(Name = "是否激活")]
        [SugarColumn(ColumnDescription = "是否激活",IsNullable = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public Boolean IsActive { get; set; }

        //[Display(Name = "创建时间")]
        //[SugarColumn(ColumnDescription = "创建时间")]
        //[Required(ErrorMessage = "请输入{0}")]
        //public DateTime CreationTime { get; set; }

        //[Display(Name = "创建人")]
        //[SugarColumn(ColumnDescription = "创建人", IsNullable = true)]
        //public long? CreatorUserId { get; set; }

        //[Display(Name = "删除人")]
        //[SugarColumn(ColumnDescription = "删除人", IsNullable = true)]
        //public long? DeleterUserId { get; set; }

        //[Display(Name = "删除时间")]
        //[SugarColumn(ColumnDescription = "删除时间", IsNullable = true)]
        //public DateTime? DeletionTime { get; set; }

        //[Display(Name = "是否删除")]
        //[SugarColumn(ColumnDescription = "是否删除")]
        //[Required(ErrorMessage = "请输入{0}")]
        //public Boolean IsDeleted { get; set; }

        //[Display(Name = "最后修改时间")]
        //[SugarColumn(ColumnDescription = "最后修改时间", IsNullable = true)]
        //public DateTime? LastModificationTime { get; set; }

        //[Display(Name = "最后修改人")]
        //[SugarColumn(ColumnDescription = "最后修改人", IsNullable = true)]
        //public long? LastModifierUserId { get; set; }

    }
}
